package com.hxit.servics.impl;

import com.hxit.mapper.UserMapper;
import com.hxit.pojo.User;
import com.hxit.servics.UserService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public void insertUser(User user) { userMapper.InsertUser(user); }
    @Override
    public User FindById(Integer id) {return userMapper.FindById(id); }
    @Override
    public void UpdateUser(User user) { userMapper.UpdateUser(user); }
    @Override
    public void DeleteUser(@Param("ids") List<Integer> ids) { userMapper.DeleteUser(ids); }

}
